package com.generator.marketManage.customerManage.dao;

import com.generator.marketManage.customerManage.pojo.City;
import com.generator.marketManage.customerManage.pojo.MarketCustomManage;
import com.generator.marketManage.customerManage.pojo.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 88168
 * @since 2022-10-04
 */
@Mapper
public interface MarketCustomManageMapper {
    /**
     * @param marketCustomManage
     * @return 查询所有用户信息
     */
    public List<MarketCustomManage> getMarketCustom(@Param("pojo") MarketCustomManage marketCustomManage);
    public List<MarketCustomManage> getMoreCondition(@Param("pojo") MarketCustomManage marketCustomManage);
//    public List<MarketCustomManage> getMoreCondition01(@Param("pojo") MarketCustomManage marketCustomManage);
    /**
     * @param customName
     * @return 查询指定用户信息
     */
    MarketCustomManage getcustomOne(@Param("customName")String customName);
    /**
     * @param customName
     * @return 注销
     */
    void logout(@Param("customName") String customName);
    /**
     * @param customName
     * @return 恢复
     */
    void refresh(@Param("customName")String customName);
    /**
     * @param marketCustomManage
     * @return 更新custom
     */
    void updateCustom(@Param("pojo") MarketCustomManage marketCustomManage);
    /**
     * @param ccname
     * @return 查找city的id
     */
    City selectAddress(String ccname);
    /**
     * @param createdName
     * @return 查找createid
     */
    Users selectCreateId(@Param("createdName") String createdName);

    /**
     * 添加客户
     * @param marketCustomManage
     */
    void addCustom(@Param("pojo")MarketCustomManage marketCustomManage);
    /**
     * 市场组员
     *
     */
    List<Users> selectMarketMembers(@Param("userName" )String userName);
    /**
     * 分配给-市场组员
     *
     */
    void updateDistribute(@Param("pojo") MarketCustomManage marketCustomManage);
}
